﻿using DBCodeBuilder.Core.Enum;

namespace DBCodeBuilder.Core.Classes
{
    public class DbRelationship
    {
        public string OriginalTable { get; set; }
        public string RefOwner { get; set; }
        public string RefTable { get; set; }
        public bool Generate { get; set; }
        public DbRelationshipType RelType { get; set; }
        public DbCascadeStyle CascadeStyleDirect { get; set; }
        public bool LazyLoadingDirect { get; set; }
        public bool NullableDirect { get; set; }
        public bool GenerateInverse { get; set; }
        public DbCascadeStyle CascadeStyleInverse { get; set; }
        public bool LazyLoadingInverse { get; set; }
        public string NameOfRepresentingFK { get; set; }
    }
}